//
//  YXCollectionViewCell.m
//

#import "YYCollectionViewCell.h"

@implementation YYCollectionViewCell

-(instancetype)initWithFrame:(CGRect)frame{

    if (self = [super initWithFrame:frame]) {
        self.headerImgView = [[UIImageView alloc]initWithFrame:CGRectMake(0, 0, 50 * KscreenWidth, 50 * KscreenHeight)];
        self.headerImgView.layer.masksToBounds = YES;
        self.headerImgView.layer.cornerRadius = 25 * KscreenWidth;
        _headerImgView.layer.masksToBounds = YES;
        _headerImgView.backgroundColor = [UIColor yellowColor];
        _headerImgView.contentMode = UIViewContentModeScaleAspectFill;
        [_headerImgView setImage:[UIImage imageNamed:@"图层18"]];
        [self.contentView addSubview:_headerImgView];
        
        self.nameLable = [[UILabel alloc]initWithFrame:CGRectMake(0, 50 * KscreenHeight, 50 * KscreenWidth, 30 * KscreenHeight)];
        self.nameLable.textAlignment = NSTextAlignmentCenter;
        self.nameLable.font = [UIFont systemFontOfSize:15 * KscreenWidth];
//        self.nameLable.text = @"孙悟空";
        [self.contentView addSubview:self.nameLable];
        
    }
    return self;
}

@end
